<template>
  <view>
    <pop ref="popup" type="bottom">
      <view class="pop-box">
        <view class="pop-box-title">
          <view>进店券可否积累使用</view>
          <view>
            <image src="/static/close.png" mode="widthFix" />
          </view>
        </view>
        <view class="pop-box-main m-1" v-if="num===0">
          
        </view>
      </view>
    </pop>
  </view>
</template>

<script>
import pop from '@/src/pages/components/uni-popup/uni-popup.vue'
export default {
  props: {
    isShow: {
      required: true,
      type: Boolean,
      default: true
    },
    num: {
      type: Number,
      default: 0
    },
  },
  data () {
    return {

    }
  },
  watch: {
    isShow: {
      handler (val) {
        if (val === true) {
          this.$refs.popup.open()
        } else {
          this.$refs.popup.close()
        }
      }
    }
  },
  mounted () {

  },
  components: {
    pop
  }
}
</script>

<style lang="scss" scoped>
.pop-box {
  display: flex;
  flex-direction: column;
  padding: 38rpx;
  min-height: 424rpx;
  background: rgba(255, 255, 255, 1);
  opacity: 1;
  border-radius: 20rpx 20rpx 0px 0px;
  &-title {
    display: flex;
    justify-content: space-between;
    align-content: center;
    font-size: 34rpx;
    font-family: PingFang SC;
    font-weight: 500;
    line-height: 44rpx;
    color: rgba(29, 29, 29, 1);
    opacityr: 1;
    image {
      width: 46rpx;
    }
  }
}
</style>